﻿using System.ComponentModel;
using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tBoundaryEvent")]
[XmlRoot("boundaryEvent", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class BoundaryEvent : CatchEvent
{
    /// <remarks/>
    [XmlAttribute("cancelActivity")]
    [DefaultValue(true)]
    public bool CancelActivity { get; set; } = true;

    /// <remarks/>
    [XmlAttribute("attachedToRef")]
    public XmlQualifiedName AttachedToRef { get; set; } = default!;
}
